Skip to main content

All Questions

3votes
2answers
116views

How do language implementations implement native-extension class instantiation?

I'm writing a language interpreter in C. I'm currently implementing a system that allows writing extension modules in C for the interpreter. These modules are loaded into a code file like a normal ...
Aviv Cohn's user avatar
3votes
1answer
192views

How can one bake a GUI framework inside an interpreter without freezing the interpreter?

I am writing a bytecode interpreter in C for a simple programming language. I want to add GUI capabilities to the language. As a first step, I decided to bake into the interpreter a wrapper for the ...
Aviv Cohn's user avatar
-3votes
1answer
66views

What are the existing solutions for creating object graphs in an interpreter?

Please let me know if this isn't the right SE site (or otherwise) for this kind of question, it's the best match I could find. I'm working on a humble interpreter written in C for a simple language I'...
Aviv Cohn's user avatar
-1votes
3answers
4kviews

Is it really always easier to write an interpreter than a compiler?

I've read that generally it's easier to write an interpreter than a compiler. If that's true, what's the reason? Writing an interpreter seems to me equivalent in the level of difficulty as writing a ...
Ben's user avatar
  • 45
7votes
2answers
628views

Transpiling <XY> language into a custom one

Our company has a legacy assembly-like language with some terrible design choices. I'm pretty sure the language is not going to change, since way too many legacy things might change their behavior ...
original.roland's user avatar
60votes
14answers
14kviews

Can we make general statements about the performance of interpreted code vs compiled code?

I'm comparing two technologies in order to reach a recommendation for which one should be used by a company. Technology A's code is interpreted while technology B's code is compiled to machine code. ...
EpicSam's user avatar
5votes
3answers
5kviews

How Does An Interpreter Work? [closed]

I've been searching for tons of websites for how an interpreter works, but I found none of these explain how Interpreter works internally. But I found in many places how compiler works with all the ...
Susantha7's user avatar
2votes
1answer
919views

Writing a parser on top of an XML-based AST: am i doing it right?

I have a sort of AST defined in XML that i'm trying to parse and evaluate. The XML tree contains the tokens and all the information i need. However, i'm finding it difficult to do it "properly". Here'...
vinnylinux's user avatar
7votes
3answers
2kviews

Is prototypal inheritance inherently slower?

I see Javascript 6 will add traditional class based inheritance, and one argument I hear is that classes are inherently much faster than prototypes because they can be optimized away by the compiler ...
Jonathan J. Bloggs's user avatar
1vote
1answer
2kviews

Static typing vs. dynamic typing [closed]

I'm developing my own programming language in my spare time as a hobby. It's an interpreted language. Currently the syntax for variables is this: %<variable> = <value> Here are some ...
Francis's user avatar
-2votes
3answers
3kviews

Are there programming languages that their programs don't run on a VM or natively, but rather on an interpreter? [closed]

In this question I presented an idea I have for a simple programming language. The way programs written in this language will be run, is inside an interpreter written in Java, which will interpret the ...
NPElover's user avatar
-1votes
2answers
229views

Regarding interpreters

I understand that an interpreter could do one of the following things (and probably more): Execute programming-language source code directly. First translate the source code to some intermediate code (...
Aviv Cohn's user avatar
4votes
3answers
1kviews

Interpreter or virtual machine that does not execute bytecode

The developers of the Dart language tell that there is a virtual machine that executes statements written in Dart language. What is the difference between an interpreter and a virtual machine that ...
Vitaly Olegovitch's user avatar
6votes
3answers
686views

From an execution perspective is an interpreter the same as the JVM / or the .net Framework

I've recently started two introductory level courses - one using Python, the other Java. I've read the answers to this Question but still have difficulty understanding how each ends up with machine ...
whytheq's user avatar
4votes
2answers
2kviews

Whats the difference between an interpreted language and one compiled to a VM? [duplicate]

It occurs to me that there's not a heck of a lot of difference between $>python module.py And: $>javac module.java $>java module.class The former compiles to an intermediate language (...
Doug T.'s user avatar
  • 11.7k

153050per page
close